package com.lottery.system.controller.param;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author: xiaoxie
 * create: 2024-09-05 12:17
 * @BelongsProject: lottery-system
 * @BelongsPackage: com.lottery.system.controller.param
 * description: 通过密码登录的参数
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UserLoginByPasswordParam extends UserLoginBaseParam{
    /**
     * @description: 手机号或者邮箱
     * 目前是手机号登录,后续拓展可以使用邮箱
     **/
    @NotBlank(message = "手机号或者邮箱不能为空!")
    private String loginName;
    /**
     * @description: 密码
     **/
    @NotBlank(message = "密码不能为空!")
    private String password;

}
